package com.mareas.web.model;

// Generated 20/11/2011 19:14:33 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TripulanteSalida generated by hbm2java
 */
@Entity
@Table(name = "tripulante_salida", catalog = "mareasdb")
public class TripulanteSalida implements java.io.Serializable {

	private TripulanteSalidaId id;
	private Datossalida datossalida;
	private Tripulante tripulante;
	private Integer tripulanteDocEmb;
	private Date tripulanteFchEmb;
	private String tripulanteSitioEmb;

	public TripulanteSalida() {
	}

	public TripulanteSalida(TripulanteSalidaId id, Datossalida datossalida,
			Tripulante tripulante, Integer tripulanteDocEmb,
			Date tripulanteFchEmb, String tripulanteSitioEmb) {
		this.id = id;
		this.datossalida = datossalida;
		this.tripulante = tripulante;
		this.tripulanteDocEmb = tripulanteDocEmb;
		this.tripulanteFchEmb = tripulanteFchEmb;
		this.tripulanteSitioEmb = tripulanteSitioEmb;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "salidaId", column = @Column(name = "Salida_ID", nullable = false)),
			@AttributeOverride(name = "tripulanteId", column = @Column(name = "Tripulante_ID", nullable = false)) })
	public TripulanteSalidaId getId() {
		return this.id;
	}

	public void setId(TripulanteSalidaId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "Salida_ID", nullable = false, insertable = false, updatable = false)
	public Datossalida getDatossalida() {
		return this.datossalida;
	}

	public void setDatossalida(Datossalida datossalida) {
		this.datossalida = datossalida;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "Tripulante_ID", nullable = false, insertable = false, updatable = false)
	public Tripulante getTripulante() {
		return this.tripulante;
	}

	public void setTripulante(Tripulante tripulante) {
		this.tripulante = tripulante;
	}

	@Column(name = "Tripulante_Doc_Emb", nullable = false)
	public Integer getTripulanteDocEmb() {
		return this.tripulanteDocEmb;
	}

	public void setTripulanteDocEmb(Integer tripulanteDocEmb) {
		this.tripulanteDocEmb = tripulanteDocEmb;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "Tripulante_fch_Emb", nullable = false, length = 10)
	public Date getTripulanteFchEmb() {
		return this.tripulanteFchEmb;
	}

	public void setTripulanteFchEmb(Date tripulanteFchEmb) {
		this.tripulanteFchEmb = tripulanteFchEmb;
	}

	@Column(name = "Tripulante_Sitio_Emb", nullable = false, length = 50)
	public String getTripulanteSitioEmb() {
		return this.tripulanteSitioEmb;
	}

	public void setTripulanteSitioEmb(String tripulanteSitioEmb) {
		this.tripulanteSitioEmb = tripulanteSitioEmb;
	}

}
